const express = require('express');
const router = express.Router();
const userinfo_han = require('../router_handler/userinfo')

//获取用户基本信息
router.get('/userinfo', userinfo_han.getUserInfo)

//
router.post('/userinfo', userinfo_han.updateUserInfo)
//修改密码的路由
router.post('/updatepwd', userinfo_han.updatePwd)

//更换头像的路由
router.post('/update/avatar', userinfo_han.updateAvatar)
module.exports = router;